<!DOCTYPE html>
<html th:replace="layout/layout"
      xmlns:th="http://www.thymeleaf.org">
<style th:fragment="styles">
</style>
<div th:fragment="content">
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-lg-10">
            <h2>零星散户产地检疫申报单</h2>
            <ol class="breadcrumb">
                <li>
                    <a href="/index?menuId=1">首页</a>
                </li>
                <li>
                    <a>监督检查</a>
                </li>
                <li class="active">
                    <strong>零星散户产地检疫申报单</strong>
                </li>
            </ol>
        </div>
        <div class="col-lg-2">

        </div>
    </div>
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox ">
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <input type="text" id="search_Declarant" placeholder="申报人"
                                           name="search_Declarant" autocomplete="off" class="form-control">
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <button type="submit" class="btn btn-primary  btn-rounded  btn-sm" id="search"
                                        onclick="doSearch()"><i
                                        class="fa fa-search"></i>&nbsp;搜索
                                </button>
                                <button type="submit" class="btn btn-warning  btn-rounded  btn-sm" id="refresh"
                                        onclick="doRest()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置
                                </button>
                            </div>
                        </div>

                        <div class="jqGrid_wrapper">
                            <div class="btn-group-sm" id="toolbar" role="group">
                                <a class="btn btn-success" name="AddNew" id="AddNew" data-toggle="modal"
                                   data-target="#myModalAdd" onclick="addRecord();">
                                    <i class="fa fa-plus"></i> 新增
                                </a>
                            </div>

                            <table class="table table-striped table-bordered table-hover " id="tableList">
                            </table>


                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--模态框-->
    <div class="modal inmodal" id="myModalAdd" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">零星散户产地检疫申报单信息</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">

                        <form class="form-horizontal" id="myform">
                            <div class="panel-body form-horizontal">
                                <div class="row">
                                    <label class="col-lg-2 control-label">申报人</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_declarant" name="text_declarant"
                                                   placeholder="申报人" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">身份证号</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_idCard" name="text_idCard" placeholder="身份证号"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">申报人联系电话</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_dphone" name="text_dphone" placeholder="申报人联系电话"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">养殖户所在乡镇</label>
                                    <div class="col-lg-10">
                                        <div class="form-group">
                                                <div id="text_address">
                                                    <label><input type="checkbox" value=""/></label>
                                                </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">具体地址</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_specificAddress" name="text_specificAddress"
                                                   placeholder="具体地址" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">销售去向所在省</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_toProvince' name='text_toProvince' class="form-control"
                                                    placeholder="销售去向所在省">
                                                <option value="0" selected>福建省</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">销售去向所在市</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_toCity' name='text_toCity' class="form-control"
                                                    placeholder="销售去向所在市" onchange="loadDistricts(this)">
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">销售去向所在区县</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_toDistrict' name='text_toDistrict' class="form-control"
                                                    placeholder="销售去向所在区县">
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">具体地点</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_toSpecificAddress" name="text_toSpecificAddress"
                                                   placeholder="具体地点" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">购买人</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_buyer" name="text_buyer" placeholder="购买人"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">购买人联系电话</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_buyPhone" name="text_buyPhone"
                                                   placeholder="购买人联系电话" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">动物种类</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id='text_animal' name='text_animal' class="form-control"
                                                    placeholder="动物种类">
                                                <option value="猪" selected>猪</option>
                                                <option value="牛">牛</option>
                                                <option value="羊">羊</option>
                                                <option value="鸡">鸡</option>
                                                <option value="鸭">鸭</option>
                                                <option value="其它动物">其它动物</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">数量</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="number" id="text_number" name="text_number" placeholder="数量"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">耳标号从(猪)1350481、(禽)SM</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_markStart" name="text_markStart"
                                                   placeholder="开始耳标号" autocomplete="off"
                                                   class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">至(猪)1350481、(禽)SM</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_markEnd" name="text_markEnd"
                                                   placeholder="结束耳标号" autocomplete="off"
                                                   class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">用途</label>
                                    <div class="col-lg-4">
                                        <div class="form-group" id="text_purpose" name="text_purpose">
                                            <label><input type="checkbox" value="屠宰"/>屠宰</label>
                                            <label><input type="checkbox" value="饲养"/>饲养</label>
                                            <label><input type="checkbox" value="其它"/>其它</label>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">当前地点</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_nowPlace" name="text_nowPlace"
                                                   placeholder="当前地点" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">动物产地检疫申报基本信息报告表照片</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <a href="javascript:;" class="a-upload">
                                                <img onclick="$('#text_photo').click()" id="showImage" src="" style="display: none" class="img-responsive">
                                                <input type="file" id="text_photo" name="text_photo" onchange="ImportShipmentStatusList();" />点击这里上传图片(格式：.png,.gif,.jpg,尺寸：420*250)
                                            </a>
                                            <input name="imgURL" id="imgURL" class="easyui-validatebox" type="hidden">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">备注</label>
                                    <div class="col-lg-10">
                                        <div class="form-group">
                                            <input type="text" id="text_remark" name="text_remark" placeholder="备注"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">巡查人员签字</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_inspectionPerson"
                                                   name="text_inspectionPerson"
                                                   placeholder="巡查人员签字" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">被巡查人员签字</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="text_toInspectionPerson"
                                                   name="text_toInspectionPerson"
                                                   placeholder="被巡查人员签字" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>

                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="save" name="save" class="btn btn-success" onclick="saveRecord();"><i
                            class="fa fa-save"></i>&nbsp;提交
                    </button>
                    <button type="button" id="close" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>

</div>
<div th:fragment="scriptRef">
    <script th:src="@{/js/lib/inspinia/js/plugins/laydate/laydate.js}"></script>
    <script th:src="@{/js/form/investors.js}"></script>
    <!--表单验证-->
    <script th:src="@{/js/lib/validate/jquery.validate.min.js}"></script>
    <!-- 文件上传 -->
    <script th:src="@{/js/Scripts/ajaxfileupload.js}"></script>
</div>
<script th:fragment="scripts" type="text/javascript">
    Investors.init();
</script>
</html>
